'''
Created on 21 nov. 2014

@author: geoff
'''

from modele import Voiture
from controleur import CtrlParking
from controleur import CtrlBdd
from PyQt4 import QtCore,QtGui
from vue import IFenetrePrincipale
from controleur import CtrlInterface
import sys


def main():
    bdd = CtrlBdd.CtrlBdd()
    ctrl = CtrlParking.CtrlParking()
    
    #bdd.reinitialisation(ctrl)
    ctrl.creerParking(bdd) #par rapport a la bdd
    
    app=QtGui.QApplication(["DreamPark"])
    appli=CtrlInterface.CtrlInterface(ctrl)
    app.exec()
    #sys.exit(app.exec())
 
    bdd.seDeconnecter()
    
if __name__ == '__main__':
    main()
